<script lang="ts">
    import type { TableStore } from "./Table";

    type ColgroupProps = {
        data: TableStore;
    };

    const props: ColgroupProps = $props();
</script>

<colgroup class="cm-table-colgroup">
    {#each props.data.columns as col (col.name || col.type)}
        <col class="cm-table-col" width={col._width} />
    {/each}
</colgroup>
